package com.iman.common.util;


public class PriceUtils {

	public static String formatPrice(String dbPrice) {
		if(dbPrice.length() >0){
			if(dbPrice.length() == 1){
				return "0.0"+dbPrice;
			}
			if(dbPrice.length() == 2){
				return "0."+dbPrice;
			}
			if(dbPrice.length() >= 3){
				return dbPrice.substring(0,dbPrice.length()-2)+"."+dbPrice.substring(dbPrice.length()-2,dbPrice.length());
			}
		}else {
			return dbPrice;
		}
		return null;
		
	}
}
